<!DOCTYPE html>
<title>Test choosing the innermost for `text-box-trim` for requested trim metric</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="match" href="text-box-trim-start-001-ref.html?class=text">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
  block-size: 100px;
  background: lightgray;
}
.target {
  font-family: Ahem;
  font-size: 100px;
  line-height: 2;
  text-box-trim: start;
  text-box-edge: leading;
}
.inner {
  text-box-edge: text;
}
</style>
<div class="spacer"></div>
<div class="target">
  <!--
    When the element that has `text-box-trim` and `.inner` has different
    `text-box-edge` values, use the innermost one.
    https://github.com/w3c/csswg-drafts/issues/5426
  -->
  <div class="inner">A</div>
</div>
<div class="spacer"></div>
